package com.shiguiwu.springmybatis.designpattern.adapter.scene;

import com.shiguiwu.springmybatis.designpattern.adapter.scene.service.OrderAdapterService;
import com.shiguiwu.springmybatis.designpattern.adapter.scene.service.OrderService;

/**
 * @description: 内部接口
 * @author: stone
 * @date: Created by 2021/8/23 15:03
 * @version: 1.0.0
 * @pakeage: com.shiguiwu.springmybatis.designpattern.adapter.scene
 */
public class InsideOrderService implements OrderAdapterService {

    private OrderService orderService = new OrderService();
    @Override
    public boolean isFirst(String uId) {
        return orderService.queryUserOrderCount(uId) <= 1L;
    }

}
